# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=ripdrag
pkgver=0.4.8
pkgrel=0
pkgdesc="Drag and Drop utilty written in Rust and GTK4"
url="https://github.com/nik012003/ripdrag"
arch="all"
license="GPL-3.0-only"
makedepends="
	cargo
	cargo-auditable
	gtk4.0-dev
"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/nik012003/ripdrag/archive/refs/tags/v$pkgver.tar.gz
"
options="!check" # no tests

prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

package() {
	install -Dm 755 target/release/ripdrag "$pkgdir"/usr/bin/ripdrag
}

sha512sums="
25d2594aef94d9d87dad0ece9b73522612d9c34db48db451d5229d639d9187d1d068c940377487c3b95cd200ca10b62b38ffe1d012d7d8fc5c2e04dff3972c1a  ripdrag-0.4.8.tar.gz
"
